﻿using System;
using System.Collections.Generic;
using System.Text;

namespace JX.Infrastructure.LoadBalancer
{
    /// <summary>
    /// 接口 负载平衡器
    /// </summary>
    public interface ILoadBalancer
    {
        /// <summary>
        /// 根据算法，解析出需要的元素
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="sequence"></param>
        /// <returns></returns>
        T Resolve<T>(IEnumerable<T> sequence);
    }
}
